//package oop.ex3.filemanager;
//
//import java.io.File;
//import java.util.List;
//
//import org.junit.Before;
//import org.junit.Test;
//
//public class MyFileManagerJUnitTest {
//
//	private MyFileManager fileManager;
//
//	@Before
//	public void setUp() throws Exception {
//		this.fileManager = new MyFileManager(new File("C:\\Java\\eclipse\\workspace\\oop.ex3\\serverlist1.txt"), new File("C:\\Java\\eclipse\\workspace\\oop.ex3\\mydir1"), 3000);
//	}
//
//	@Test
//	public void testListFiles() {
//		List<File> fileList = fileManager.listFiles();
//		assertEquals("dir returned incorrect number of values.", 5, fileList.size());
//	}
//
//	@Test
//	public void testAdd() {
//		String returnStatus = fileManager.add("m.txt");
//		assertEquals("File already exists", returnStatus);
//
//		returnStatus = fileManager.add("goat");
//		if (!returnStatus.startsWith("File Downloaded Successfully from")) {
//			fail("add should have said 'File Downloaded Successfully'.");
//		}
//
//		returnStatus = fileManager.add("doesntExist");
//		assertEquals("Downloading failed", returnStatus);
//	}
//}